Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error (500) #1174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Internal Server Error (500) #1174

wants to merge 1 commit into from

Conversation

VitorRDias
Copy link

I tried to open Tabula in my work notebook and it showed the following Internal Server Error (500):

No such file or directory - NUL from org/jruby/RubyFile.java:366:in initialize' from org/jruby/RubyIO.java:1154:in open' from uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/user_interaction.rb:681:in initialize' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar-_-any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler/ui/rg_proxy.rb:11:in initialize' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar--any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler.rb:74:in ui=' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar-_-any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler.rb:70:in ui' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar--any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler/definition.rb:252:in resolve' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar-_-any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler/definition.rb:170:in specs' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar--any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler/definition.rb:237:in specs_for' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar-_-any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler/definition.rb:226:in requested_specs' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar--any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler/runtime.rb:108:in block in requested_specs' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar-_-any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler/runtime.rb:20:in setup' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar--any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler.rb:107:in setup' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar-_-any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/bundler-1.16.1/lib/bundler.rb:114:in require' from C:\Users\vitor\AppData\Local\Temp\jetty-0.0.0.0-8080-tabula.jar--any-6308546013162397813.dir\webapp\WEB-INF\config.ru:4:in block in (root)' from org/jruby/RubyBasicObject.java:1691:in instance_eval' from C:/Users/vitor/AppData/Local/Temp/jetty-0.0.0.0-8080-tabula.jar-_-any-6308546013162397813.dir/webapp/WEB-INF/gems/gems/rack-2.0.4/lib/rack/builder.rb:55:in initialize' from C:\Users\vitor\AppData\Local\Temp\jetty-0.0.0.0-8080-tabula.jar-_-any-6308546013162397813.dir\webapp\WEB-INF\config.ru:1:in

'

How to fix that error?

@rua4
Copy link

rua4 commented May 3, 2022

Same happened here. It was solved by updating from Java 8u331 to Java 8u333.

@RichardMisencik
Copy link

@rua4 java control panel is reporting 331 to be the latest version, how to update please?

@mtovmassian
Copy link

mtovmassian commented May 4, 2022

@rua4 java control panel is reporting 331 to be the latest version, how to update please?

On a Windows machine I bypassed the Java Control Panel by manually installing the Java 8u333 via https://www.java.com/en/download/manual.jsp

@rua4
Copy link

rua4 commented May 5, 2022

@rua4 java control panel is reporting 331 to be the latest version, how to update please?

You can manually install the newer version as suggested by @mtovmassian or downgrade to lower version (e.g. 8u321, 8u311 etc).

@VitorRDias
Copy link
Author

VitorRDias commented May 5, 2022 via email

@aylmao22
Copy link

Still having same internal server issue with 333 and 331, any ideas?

Tabula API version: 1.2.1.18052200
Filename: 80-174.pdf
Internal Server Error (500)

    Request Method:
    POST
  
  
    Request URL:
    http://127.0.0.1:8080/pdf/5d335b0d97694f671a8caafa4854d4144b5fe45d/data

@MattiFish
Copy link

MattiFish commented Jul 26, 2022

Still having the 500 error when using Tabulapdf on mac (Cataline 10.15.7). This is occurring only on specific tables I am trying to convert. I am seeing certain lines excluded from the OCR conversion (see images below). When I focus the OCR on the specific area excluded, I get the 500 error.

I have downloaded the latest Java (v8u341) but I am not sure if it is being used by Tabula (I think I read that the mac version comes with its own java version so I think this might be the main problem).

I have not been able to replicate this on the windows 10 version but I was using a smaller dataset. Java was up to date as far as I could tell (v341).

Hope I included all relevant info, new to Github. Great tool btw!

Edit #1: Similar thing happening on windows 10 (build: 19044.1826) and java (8u341). Firefox browser if that makes a difference. Interestingly only some areas get processed fine. I am using invoices and some come out perfect, others with these errors, even when it is in same format.

Repeats of:

Jul 31, 2022 7:38:16 PM org.apache.pdfbox.pdmodel.font.PDType0Font toUnicode
WARNING: No Unicode mapping for CID+41 (41) in font NVFQUS+Arial
Jul 31, 2022 7:38:16 PM org.apache.pdfbox.pdmodel.font.PDType0Font toUnicode
WARNING: No Unicode mapping for CID+32 (32) in font TSSNBB+LucidaConsole

...coming up in the Tabula console.

Successful in replicating this error (500) in windows.

Edit #2:

Using Preview (on Mac) yields incomplete characters (I am not sure exactly how to extract the exact representation of it):

1N􏰃AAN 20/0A/2022 20A155 Eum20 2􏰂/T5􏰃07N OAOALO 􏰀A 􏰂52011AN1A 1

Which should read as:

198669 20/06/2022 206155 eum20 24/F58079 BABALO V6 4520116916 1

Tabula extracts the table below this without issue.

Edit #3: Found an interesting example of this problem in my dataset. A PDF invoice has two pages, one table is repeated across both pages. The info from the table on page 2 is extracted correctly, the first table throws the 500 error when focusing on the data in the table. Example of PDF attached.
pmE617.pdf

Broad OCR
Broad output - info excluded
Focussed OCR
Focussed output - error 500

@dxchung
Copy link

dxchung commented Jan 14, 2023

I tried to install Java 8u333, but does not work

(SystemCallError) Unknown error (SystemCallError) - Unknown Error (0) - ./enumerator.jar
You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.

@astro-ray
Copy link

I am getting this error message.

load error: /tmp/jetty-0.0.0.0-8080-tabula.jar-_-any-15024240811704351880.dir/webapp/WEB-INF/webapp/tabula_web -- java.lang.reflect.InaccessibleObjectException: Unable to make field public static final int java.util.zip.ZipConstants.ENDSIZ accessible: module java.base does not "opens java.util.zip" to unnamed module @2fab4aff from org/jruby/RubyKernel.java:955:in `require' from uri:classloader:/jruby/kernel/kernel.rb:13:in `require_relative' from /tmp/jetty-0.0.0.0-8080-tabula.jar-_-any-15024240811704351880.dir/webapp/WEB-INF/config.ru:14:in `block in (root)' from org/jruby/RubyBasicObject.java:1691:in `instance_eval' from /tmp/jetty-0.0.0.0-8080-tabula.jar-_-any-15024240811704351880.dir/webapp/WEB-INF/gems/gems/rack-2.0.4/lib/rack/builder.rb:55:in `initialize' from /tmp/jetty-0.0.0.0-8080-tabula.jar-_-any-15024240811704351880.dir/webapp/WEB-INF/config.ru:1:in `<main>'

You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.

@dsr54
Copy link

dsr54 commented Mar 6, 2023

I am also getting a similar error, strange as was working the other day:

You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.

@libbieweimer-selc
Copy link

I'm getting a 500 error too, looks like Java updated today, 4/13/2023.

JAVA Version 8 update 361 (build 1.8.0_361-b09)
Tabula Version 1.2.1

image

@ValeeKatona
Copy link

Internal Server Error (500)

Request Method: GET
http://127.0.0.1:8080/

@rua4
Copy link

rua4 commented Jun 14, 2023

Working here with Java 8 u371.
I recommend uninstalling older versions of Java and leaving only the latest.
Also extract and run the program in a folder that does not recquire privileges (eg. Downloads, Desktop etc)

@abtpltd
Copy link

abtpltd commented Oct 2, 2023

tabula-master>bundle install
C:/jruby-9.4.3.0/lib/ruby/gems/shared/gems/stringio-3.0.8-java/lib/stringio.rb:3: warning: already initialized constant StringIO::VERSION
Fetching gem metadata from https://rubygems.org/..........
Using rake 13.0.1
Using execjs 2.7.0
Using autoprefixer-rails 9.8.6.3
Using thread_safe 0.3.6 (java)
Using descendants_tracker 0.0.4
Using ice_nine 0.11.2
Using axiom-types 0.1.1
Using ffi 1.13.1 (java)
Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/jruby-9.4.3.0/lib/ruby/gems/shared/gems/sassc-2.4.0/ext
C:/jruby-9.4.3.0/bin/jruby.exe extconf.rb
creating Makefile

current directory: C:/jruby-9.4.3.0/lib/ruby/gems/shared/gems/sassc-2.4.0/ext
make DESTDIR= sitearchdir=./.gem.20231002-15792-8k8726
sitelibdir=./.gem.20231002-15792-8k8726 clean
current directory: C:/jruby-9.4.3.0/lib/ruby/gems/shared/gems/sassc-2.4.0/ext
make DESTDIR= sitearchdir=./.gem.20231002-15792-8k8726
sitelibdir=./.gem.20231002-15792-8k8726
make failedCannot run program "make" (in directory
"C:\jruby-9.4.3.0\lib\ruby\gems\shared\gems\sassc-2.4.0\ext"): CreateProcess
error=2, The system cannot find the file specified

Gem files will remain installed in
C:/jruby-9.4.3.0/lib/ruby/gems/shared/gems/sassc-2.4.0 for inspection.
Results logged to
C:/jruby-9.4.3.0/lib/ruby/gems/shared/extensions/universal-java-17/3.1.0/sassc-2.4.0/gem_make.out

An error occurred while installing sassc (2.4.0), and Bundler cannot continue.
Make sure that gem install sassc -v '2.4.0' --source 'https://rubygems.org/'
succeeds before bundling.

In Gemfile:
bootstrap-sass was resolved to 3.4.1, which depends on
sassc

@nelsonmau
Copy link

It happened even to me on Ubuntu 22.04.

It was about the server not working. I needed to downgrade to Java8

  0            /usr/lib/jvm/java-19-openjdk-amd64/bin/java      1911      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Selected *2 (java-8), then just run the command
java -Dfile.encoding=utf-8 -Xms256M -Xmx1024M -jar tabula.jar

Little bit struggling but fixed in the end :-)

@martingwb
Copy link

martingwb commented May 22, 2024

@astro-ray wrote:

I am getting this error message.

load error: /tmp/jetty-0.0.0.0-8080-tabula.jar-_-any-15024240811704351880.dir/webapp/WEB-INF/webapp/tabula_web -- java.lang.reflect.InaccessibleObjectException: Unable to make field public static final int java.util.zip.ZipConstants.ENDSIZ accessible: module java.base does not "opens java.util.zip" to unnamed module @2fab4aff from org/jruby/RubyKernel.java:955:in `require' from uri:classloader:/jruby/kernel/kernel.rb:13:in `require_relative' from /tmp/jetty-0.0.0.0-8080-tabula.jar-_-any-15024240811704351880.dir/webapp/WEB-INF/config.ru:14:in `block in (root)' from org/jruby/RubyBasicObject.java:1691:in `instance_eval' from /tmp/jetty-0.0.0.0-8080-tabula.jar-_-any-15024240811704351880.dir/webapp/WEB-INF/gems/gems/rack-2.0.4/lib/rack/builder.rb:55:in `initialize' from /tmp/jetty-0.0.0.0-8080-tabula.jar-_-any-15024240811704351880.dir/webapp/WEB-INF/config.ru:1:in `<main>'

You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.

Maybe you want to try adding "... --add-opens=java.base/java.util.zip=ALL-UNNAMED ..." when running it. It helped for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.